package com.ht.sps.nh.entity;

import org.nutz.dao.entity.annotation.*;


@Table("SYSTEM_USER_PERMISSION")
public class UserPermission {

    @Column
    @ColDefine(type = ColType.INT,notNull = true )
    private Long userId;

    @One(target = User.class,field = "userId")
    private User user;

    @Column
    @ColDefine(type = ColType.INT,notNull = true)
    private Long treeMenuId;

    @One(target = TreeMenu.class,field = "treeMenuId")
    private TreeMenu treeMenu;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Long getTreeMenuId() {
        return treeMenuId;
    }

    public void setTreeMenuId(Long treeMenuId) {
        this.treeMenuId = treeMenuId;
    }

    public TreeMenu getTreeMenu() {
        return treeMenu;
    }

    public void setTreeMenu(TreeMenu treeMenu) {
        this.treeMenu = treeMenu;
    }
}
